<table style="width: 100%;" cellpadding="4" cellspacing="0">
<tr>
    <td class="border2">

        <!-- Start Top module -->
        <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header">{$sBoxName}</td>
        </tr>
        </table>
        <div style="padding-left: 30px; font-size: 10pt;"><b>{messages block='View'}</b></div>
        <!-- End Top module -->
		{if !$iIsFriend}
		<table style="width:100%;" cellpadding="8" cellspacing="8">
		<tr>
			<td style="vertical-align:top;">
				<a href="{url link=public.user name=$aBulletinInfo.user}">
					{Account::Avatar sUser=$aBulletinInfo.user iSize=75 class="pic1" onmouseover="showInfo5('`$aBulletinInfo.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
				</a>
			</td>
			<td style="vertical-align:top;" class="color">
			{language text="bb.be.friends"}
				<ul>
					<li><a href="{url link=public.account.friends.add id=$aBulletinInfo.userid}">{language text="bb.ask.friend"}</a></li>
					<li><a href="{url link=public.user name=$aBulletinInfo.user}">{language text="bb.views.profile"}</a></li>
				</ul>
			</td>
		</tr>
		</table>
		{else}
        <!-- Start Content-->
        <div>
            <div style="padding: 8px; font-size: 8pt;" class="border13">
                <img src="{$sStylePath}spacer.gif" class="sqr" style="vertical-align: middle;" alt="" height="7" width="7" />
                &nbsp;<b>{$aBulletinInfo.title|clean}</b>
            </div>
            <br />
            <table style="width: 100%;" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td style="width: 80%; vertical-align: top;">
                            <table style="width: 100%; font-size: 8pt;" class="color">
                                <tbody>
                                    <tr>
                                        <td style="width: 20%; text-align: right;"><b>{language text="by"}</b>:</td>
                                        <td style="width: 80%;">
                                            <a href="{url link=public.user name=$aBulletinInfo.user}">{$aBulletinInfo.user}</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 20%; text-align: right;"><b>{language text="date"}</b>:</td>
                                        <td style="width: 80%;">{$aBulletinInfo.time|date_format:$sDateFormat}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                        <td style="width: 20%; vertical-align: top; text-align: center; font-size: 8pt;" class="color">
                            <a href="{url link=public.user name=$aBulletinInfo.user}">
                                {Account::Avatar sUser=$aBulletinInfo.user iSize=75 class="pic1" onmouseover="showInfo5('`$aBulletinInfo.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
                            </a>
                        </td>
                    </tr>
                </tbody>
            </table>
            <br />
            <table style="width: 100%;">
                <tbody>
                    <tr>
                        <td style="width: 5%;"></td>
                        <td style="width: 95%; font-size: 8pt;" class="color">
                            {$aBulletinInfo.text|process_code}
                            <br /><br />
                    		<table style="width: 100%;">
        		              <tbody>
        		                  <tr>
        		                      <td style="font-size: 9pt;" class="color">
        		                          <a class="link_action" href="{url link='public.account.bulletin' rep=$aBulletinInfo.id}">[ {language text="post_reply_138"} ]</a>
        		                          {if $bIsAdmin || $bIsOwner}
                                          &nbsp;
        		                          <a class="link_action" href="{url link='public.account.bulletin' del=$aBulletinInfo.id}">[ {language text="delete"} ]</a>
                                          &nbsp;
        		                          <a class="link_action" href="{url link='public.account.bulletin' edit=$aBulletinInfo.id}">[ {language text="edit"} ]</a>
        		                          {/if}
        		                      </td>
        		                      <td style="font-size: 9pt; text-align: right;" class="color">
        			                     {if $aNav}
                    						{if $aNav.1}
                                                <a href="{url link=public.account.bulletin.view id=$aNav.1}" class="link_action">[ {language text="previous_message"} ]</a>
                    						{/if}
                    						{if $aNav.0}
                                                &nbsp;
                                                <a href="{url link=public.account.bulletin.view id=$aNav.0}" class="link_action">[ {language text="next_message"} ]</a>
                    						{/if}
                						{/if}
        		                      </td>
        	                      </tr>
                              </tbody>
                          </table>
        		      </td>
        	      </tr>
                </tbody>
            </table>
            <br />
            {/if}
    </td>
</tr>
</table>